package cn.com.huzo.model.entities.trade;

import huzofw.model.entities.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import java.sql.Timestamp;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 化检日记账款号明显记录实体类
 * <p>
 * @author 范学春
 */
public class InspectionJournalLinesNoOfStyleEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -611599365846079843L;
    private String LinesId;
    private Long HeaderId;
    private Long MoId;
    private Long ProductId;
    private Long ColourId;
    private String ShippingMarkNo;             // 
    private String ProductName;                // 品名 
    private String NoOfStyle;                  // 款号（套装)
    private String SalesManName;               // 贸易担当                     
    private String DesignerName;               // 设计担当
    private String ColourCode;                 // 色号
    private String ColourName;                 // 色名
    private Timestamp DateOfMaterialPrepared;  //  料齐日
    private String Description;                // 备注

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public Long getMoId() {
        return MoId;
    }

    public void setMoId(Long MoId) {
        this.MoId = MoId;
    }

    public Long getProductId() {
        return ProductId;
    }

    public void setProductId(Long ProductId) {
        this.ProductId = ProductId;
    }

    public Long getColourId() {
        return ColourId;
    }

    public void setColourId(Long ColourId) {
        this.ColourId = ColourId;
    }

    public String getShippingMarkNo() {
        return ShippingMarkNo;
    }

    public void setShippingMarkNo(String ShippingMarkNo) {
        this.ShippingMarkNo = ShippingMarkNo;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }

    public String getNoOfStyle() {
        return NoOfStyle;
    }

    public void setNoOfStyle(String NoOfStyle) {
        this.NoOfStyle = NoOfStyle;
    }

    public String getSalesManName() {
        return SalesManName;
    }

    public void setSalesManName(String SalesManName) {
        this.SalesManName = SalesManName;
    }

    public String getDesignerName() {
        return DesignerName;
    }

    public void setDesignerName(String DesignerName) {
        this.DesignerName = DesignerName;
    }

    public String getColourCode() {
        return ColourCode;
    }

    public void setColourCode(String ColourCode) {
        this.ColourCode = ColourCode;
    }

    public String getColourName() {
        return ColourName;
    }

    public void setColourName(String ColourName) {
        this.ColourName = ColourName;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    public void setDateOfMaterialPrepared(Timestamp DateOfMaterialPrepared) {
        this.DateOfMaterialPrepared = DateOfMaterialPrepared;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfMaterialPrepared() {
        return DateOfMaterialPrepared;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof InspectionJournalLinesNoOfStyleEntity)) {
            return false;
        }

        final InspectionJournalLinesNoOfStyleEntity that = (InspectionJournalLinesNoOfStyleEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
